<template>
  <div class="exception">
    <img src="../assets/404.png" alt="">
    <el-button class="btn-home" @click="goHome">回首页</el-button>
  </div>
</template>

<script>
export default {
  name: '404',
  methods: {
    goHome() {
      this.$router.push('/')
    }
  }
}
</script>

<style lang="scss" scoped>
.exception {
  position: relative;
  img {
    width: 100%;
    height: 100vh;
  }
}
.btn-home {
  position: absolute;
  left: 50%;
  bottom: 100px;
  margin-left: -34px;
}
</style>